package com.assignwork.service;

import com.assignwork.dto.DailyShiftSearchDTO;
import com.assignwork.dto.DailyShiftSubmitDTO;
import com.assignwork.entity.DailyShift;
import com.assignwork.vo.DailyShiftVO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springblade.core.mp.base.BaseService;

import java.util.List;

/**
 * @ClassName IDailyShiftService
 * @Description 每日作业班次接口
 * @Author dujianyu
 * @Date 2023/12/1 10:49
 */
public interface IDailyShiftService extends BaseService<DailyShift> {
    /**
     * 生成每日作业班次
     * @param
     * @return boolean
     * @author dujianyu
     * @since 2023/12/1 11:01
     */
    boolean generateDailyShift();

    /**
     * 分页
     * @param page 分页
     * @param dto 搜索参数
     * @return IPage<DailyShiftVO>
     * @author dujianyu
     * @since 2023/12/1 13:39
     */
    IPage<DailyShiftVO> selectDailyShiftPage(DailyShiftSearchDTO dto, IPage<DailyShiftVO> page);

    /**
     * 列表
     * @param dto 搜索参数
     * @return List<DailyShiftVO>
     * @author dujianyu
     * @since 2023/12/1 13:54
     */
    List<DailyShiftVO> selectDailyShiftList(DailyShiftSearchDTO dto);

    /**
     * 修改
     * @param dto 数据
     * @return boolean
     * @author dujianyu
     * @since 2023/12/1 15:05
     */
    boolean submitDailyShift(DailyShiftSubmitDTO dto);

    /**
     *更新调度主任
     * @param dto 数据
     * @return boolean
     * @author dujianyu
     * @since 2024/4/8 10:51
     */
    boolean updateAssignUser(DailyShiftSubmitDTO dto);
}
